package com.agrimall.mapper;

import com.agrimall.entity.OrderItem;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 订单明细Mapper接口
 */
public interface OrderItemMapper {
    /**
     * 插入订单明细
     */
    int insert(OrderItem orderItem);
    
    /**
     * 根据订单ID查询订单明细列表
     */
    List<OrderItem> selectByOrderId(Long orderId);
    
    /**
     * 批量插入订单明细
     */
    int insertBatch(List<OrderItem> orderItems);
}



